<%@ page language="java" 
import="java.util.*,
		cn.edu.hust.youth.tzb.model.*" 
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'modify work.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type='text/css'>
		<!--
		div#modifywork_wrapper{
		width:450px;
		margin-left:300px;
		}
		
		div.modifywork_text{
		font-weight:bold;
		}
		
		div.hrline{
		border-bottom:1px solid darkgray;
		}
		div.float_left{
		float:left;
		margin-bottom:30px;
		
		}
		
		div.modifywork_text{
		margin-top:10px;
		width:150px;
		}
		
		div.modifywork_box{
		margin-top:10px;
		width:280px;
		}
		
		div.modifywork_text2{
		margin-top:10px;
		font-weight:bold;
		
		
		}
		
		div.modifywork_box2{
		margin-top:20px;
	
		}
		
		div.modifywork_botton{
		margin-top: 10px;
		
		}
		
		div.clearboth{
		clear:both;
		}
		-->
		</style>
	
	
	
<%
    	Work w = (Work)request.getAttribute("work");
    %>
  <script type="" language="javascript">

function onCancel()
{
  window.location="/checkWork/modifywork?id=<%= w.getId() %>";
}
  </script>
  </head>  
 	
  
  <body>
  <div id='modifywork_wrapper'>
    <form method="post" action="/checkWork/workmodified" name="Work">   	
  		<input type="hidden" name="id" value="<%=w.getId() %>">
		<div>
			<div class='modifywork_text float_left'>作品名称：</div>
			<div class='modifywork_box float_left'><input type="text" name="name" value="<%=w.getName()%>"></div>
		<div class='clearboth'></div>
		</div>
		<div class='hrline'>
			<div class='modifywork_text float_left'>作品类型：</div>
			<div class='modifywork_box float_left'>
			<select size="1" name="type">
				<option <%if (w.getType()==1) { %>selected<%} %> value="1">自然科学类学术论文</option>
				<option <%if (w.getType()==2) { %>selected<%} %>value="2">社会科学类社会调查报告和学术论文</option>
			</select>
			</div>
			<div class='clearboth'></div>
		</div>
		<div>
			<div class='modifywork_text2'>作品的研究目的、研究方法、主要结论和预期成果:</div>
			<div class='modifywork_box2'><textarea name="detail1" rows="10" cols="50"><%=w.getDetail1()%></textarea></div>
			<div class='clearboth'></div>
		</div>
		<div>
			<div class='modifywork_text2 '>作品的科学性、先进性及独特之处：</div>
			<div class='modifywork_box2'><textarea name="detail2" rows="10" cols="50"><%=w.getDetail2()%></textarea></div>
			<div class='clearboth'></div>
		</div>
		<div>
			<div class='modifywork_text2'>作品的实际应用价值和现实意义：</div>
			<div class='modifyworkk_box2'><textarea name="detail3" rows="10" cols="50"><%=w.getDetail3()%></textarea></div>
			<div class='clearboth'></div>	
		</div>
		<div class='modifywork_botton'>
			<input type="submit" value="提交" name="button2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  			<input type="button" name="Cancel" value="取消" onclick="onCancel()">
		</div>
	</form>
	</div>
  </body>
</html>
